556 research outputs found

    Empirical Evaluation of Test Coverage for Functional Programs

    Get PDF
    The correlation between test coverage and test effectiveness is important to justify the use of coverage in practice. Existing results on imperative programs mostly show that test coverage predicates effectiveness. However, since functional programs are usually structurally different from imperative ones, it is unclear whether the same result may be derived and coverage can be used as a prediction of effectiveness on functional programs. In this paper we report the first empirical study on the correlation between test coverage and test effectiveness on functional programs. We consider four types of coverage: as input coverages, statement/branch coverage and expression coverage, and as oracle coverages, count of assertions and checked coverage. We also consider two types of effectiveness: raw effectiveness and normalized effectiveness. Our results are twofold. (1) In general the findings on imperative programs still hold on functional programs, warranting the use of coverage in practice. (2) On specific coverage criteria, the results may be unexpected or different from the imperative ones, calling for further studies on functional programs

    Design and Research of New Network Address Coding

    Get PDF

    Identifying Active Sites for COâ‚‚ Reduction on Dealloyed Gold Surfaces by Combining Machine Learning with Multiscale Simulations

    Get PDF
    Gold nanoparticles (AuNPs) and dealloyed Au_3Fe core–shell NP surfaces have been shown to have dramatically improved performance in reducing CO_2 to CO (CO2RR), but the surface features responsible for these improvements are not known. The active sites cannot be identified with surface science experiments, and quantum mechanics (QM) is not practical for the 10 000 surface sites of a 10 nm NP (200 000 bulk atoms). Here, we combine machine learning, multiscale simulations, and QM to predict the performance (a-value) of all 5000–10 000 surface sites on AuNPs and dealloyed Au surfaces. We then identify the optimal active sites for CO2RR on dealloyed gold surfaces with dramatically reduced computational effort. This approach provides a powerful tool to visualize the catalytic activity of the whole surface. Comparing the a-value with descriptors from experiment, computation, or theory should provide new ways to guide the design of high-performance electrocatalysts for applications in clean energy conversion

    Linear or Nonlinear? Automatic Structure Discovery for Partially Linear Models

    Get PDF
    Partially linear models provide a useful class of tools for modeling complex data by naturally incorporating a combination of linear and nonlinear effects within one framework. One key question in partially linear models is the choice of model structure, that is, how to decide which covariates are linear and which are nonlinear. This is a fundamental, yet largely unsolved problem for partially linear models. In practice, one often assumes that the model structure is given or known and then makes estimation and inference based on that structure. Alternatively, there are two methods in common use for tackling the problem: hypotheses testing and visual screening based on the marginal fits. Both methods are quite useful in practice but have their drawbacks. First, it is difficult to construct a powerful procedure for testing multiple hypotheses of linear against nonlinear fits. Second, the screening procedure based on the scatterplots of individual covariate fits may provide an educated guess on the regression function form, but the procedure is ad hoc and lacks theoretical justifications. In this article, we propose a new approach to structure selection for partially linear models, called the LAND (Linear And Nonlinear Discoverer). The procedure is developed in an elegant mathematical framework and possesses desired theoretical and computational properties. Under certain regularity conditions, we show that the LAND estimator is able to identify the underlying true model structure correctly and at the same time estimate the multivariate regression function consistently. The convergence rate of the new estimator is established as well. We further propose an iterative algorithm to implement the procedure and illustrate its performance by simulated and real examples. Supplementary materials for this article are available online

    Evaluating Modules in Graph Contrastive Learning

    Full text link
    The recent emergence of contrastive learning approaches facilitates the research on graph representation learning (GRL), introducing graph contrastive learning (GCL) into the literature. These methods contrast semantically similar and dissimilar sample pairs to encode the semantics into node or graph embeddings. However, most existing works only performed model-level evaluation, and did not explore the combination space of modules for more comprehensive and systematic studies. For effective module-level evaluation, we propose a framework that decomposes GCL models into four modules: (1) a sampler to generate anchor, positive and negative data samples (nodes or graphs); (2) an encoder and a readout function to get sample embeddings; (3) a discriminator to score each sample pair (anchor-positive and anchor-negative); and (4) an estimator to define the loss function. Based on this framework, we conduct controlled experiments over a wide range of architectural designs and hyperparameter settings on node and graph classification tasks. Specifically, we manage to quantify the impact of a single module, investigate the interaction between modules, and compare the overall performance with current model architectures. Our key findings include a set of module-level guidelines for GCL, e.g., simple samplers from LINE and DeepWalk are strong and robust; an MLP encoder associated with Sum readout could achieve competitive performance on graph classification. Finally, we release our implementations and results as OpenGCL, a modularized toolkit that allows convenient reproduction, standard model and module evaluation, and easy extension

    Mode Evaluation and Structure Design of Connection between Pole and Base of Roadside Breakaway Sign in China

    Get PDF
    In order to present reliable mode and structure of connection between pole and base for breakaway sign, mode evaluation and structure design were conducted in this paper. AHP was adopted to evaluate connection modes between sign pole and base. Analytic hierarchy with double criterion layer and corresponding judgment matrix were established. Through qualitative analysis, powers of indexes were given and evaluation results were presented based on standardization process of each evaluation index. It shows that brittle connection mode comes in the first place, the plastic connection mode comes second, and rigid connection mode comes last. Two brittle connection structures were designed through the finite element simulation analysis. By ANSYS software, stress data were given for recessed and hole-type connection design structure. It can be found that maximum tensile stress data of two connection structures are all more than ultimate tensile strength of steel. Thus it can be concluded that two connection structures designed in this paper can be breakaway in collision and protect the safety of vehicle occupants
    • …
    corecore